app.controller('accountDetail',["$rootScope","$scope","$state","userInfoCacheFactory","confirmFactory","userInfoService","accountDetailService", function($rootScope,$scope,$state,userInfoCacheFactory,confirmFactory,userInfoService,accountDetailService) {
    $scope.orderStateData = userInfoCacheFactory.orderState;
    $scope.myorderlist = {};
    $scope.navTabClick = function(id){
        if(!$rootScope.userInfoData.level){
            //$state.transitionTo("userInfo/orderlistDetail",{itmeId: id});
        }
    };
    accountDetailService.orderInfo(function(data){
        $scope.accountlist = data.data;
    })
    userInfoService.orderNum(function(data){
        $scope.orderNum = data.data;
    });
}]);
